<% cardlist.forEach(function(item){ %>
<div class="card-item<% if (item.expired==1) { %> card-item-expired<% } %>">
	<div class="item-row"><div class="validuntil">有效期：<%= item.validuntil %></div><div class="unbind-icon" data-cardid="<%= item.carid %>"><i class="icon-unbind"></i></div></div>
	<div class="item-row">
		<div class="cardnumber"><%= item.cardnumber %></div>
		<div class="balances"><span class="label">余额</span><sub>&yen;</sub><%= item.balances %>元</div>
	</div>
	<div class="card-btn"><button type="button" class="button button-gray" data-href="/index.php?r=moponcard/transdetails&cardid=<%= item.carid %>&ocid=<%= ocid %>" >交易明细</button><button type="button" class="button <% if (item.expired==1) { %> button-gray<% }else{ %> button-green<% } %>"<% if (item.expired==0) { %> data-href="/index.php?r=moponcard/recharge&cardid=<%= item.carid %>&ocid=<%= ocid %><% } %>">充值</button></div>
	<% if (item.expired==1) { %><div class="expired-mark"><i class="icon-expired"></i></div><% } %>
</div>
<% }) %>